<style>
th, td {
    text-align: left;
}
</style>
<div class="order-title bold">物流信息</div>
<table class="table jinyun-table table-hover vertical-middle jinyun-form">
                <thead class="navbar-inner">
                <tr>
                    <th style="">订单状态</th>
                    <th style="">状态详情</th>
					<th>配送情况</th>
					<th>订单操作</th>
                </tr>
                </thead>
				<tbody>
					<tr>
					   <td class="bold">{{pagedata.item.statustitle}}</td>
					   <td>
					   <div ng-if="pagedata.item.status==-1 && (pagedata.item.closereason || pagedata.item.remarkclose)" class="form-control-static">关闭原因:{{pagedata.item.closereason || pagedata.item.remarkclose}}</div>
						<span ng-if="pagedata.item.status!=3">（
							<span ng-if="pagedata.item.status==0 && pagedata.item.paytype==3">{{check_show_lang('此订单为货到付款订单，请商家尽快发货')}}</span>
                            <span ng-if="pagedata.item.status==0 && pagedata.item.paytype!=3">{{check_show_lang('等待买家付款')}}</span>
							<span ng-if="pagedata.item.status==1 && (pagedata.item.sendtype==1 || pagedata.item.sendtype==4)">{{check_show_lang('买家已经付款，请商家尽快发货')}}</span>
							<span ng-if="pagedata.item.status==1 && pagedata.item.sendtype==2">{{check_show_lang('买家已经付款，等待客户上门自取')}}</span>
							<span ng-if="pagedata.item.status==1 && pagedata.item.sendtype==3">{{check_show_lang('买家已经付款，虚拟物品线上发货')}}</span>
                            <span ng-if="pagedata.item.status==2">{{check_show_lang('商家已发货，等待买家收货并交易完成')}}</span>
							<span ng-if="pagedata.item.status==-1 || pagedata.item.status==4">{{check_show_lang('商家已发货，等待买家收货并交易完成')}}</span>
                            <span ng-if="pagedata.refund && pagedata.refund.status==1" class="label label-default">{{check_show_lang('已退款')}}</span> {{pagedata.refund.refundtime?'退款时间: '+pagedata.refund.refundtime:''}}
						）
						</span>
						<div ng-if="pagedata.item.status>0" class='order-container-footer text col-md-12' style="border: none;padding: 0">
							{{check_show_lang('友情提示_Helpful hints')}}：
							<span ng-if="pagedata.item.status==0 && pagedata.item.paytype==3">{{check_show_lang('订单为货到付款，请您务必联系买家确认后再进行发货')}}</span>
							<span ng-if="pagedata.item.status==0 && pagedata.item.paytype!=3">{{check_show_lang('您可以联系买家进行付款，否则订单会根据设置自动关闭')}}</span>
							<span ng-if="pagedata.item.status==1">{{check_show_lang('如果无法进行发货，请及时联系买家进行妥善处理;')}}</span>
							<span ng-if="pagedata.item.status==2">{{check_show_lang('请及时关注物流状态，确保买家及时收到商品;')}}</span>
							<span ng-if="pagedata.item.status==2">{{check_show_lang('如果买家未收到货物或有退换货请求，请及时联系买家妥善处理')}}</span>
							<span ng-if="pagedata.item.status==3">{{check_show_lang('交易成功，如买家有售后申请，请与买家进行协商，妥善处理_Trading success, such as buyers have after-sale application, please contact with buyers to negotiate, properly handle')}}</span>
						</div>
						<div ng-if="pagedata.order_data" class="col-md-12 order-container-footer">
							<span class="text" style="display: block"> {{check_show_lang('统一下单信息')}}：</span>
							<div style="flex: 1;">
							   <table style="width: 100%;">
									<tr ng-repeat="(key,value) in pagedata.order_fields" ng-if="$index==1" class="diymore2">
										<td style='width:60px'>{{value.tp_name}}：</td>
										<td style="white-space: normal;">
											
										</td>
									</tr>
									<tr ng-repeat="(key,value) in pagedata.order_fields" ng-if="$index==2" class="diymore22">
										<td colspan="2"><a href="javascript:void(0);" style="padding-right: 100px;" id="showdiymore2">查看完整信息</a></td>
									</tr>
								</table>
							</div>
						</div>
					   </td>
					   <td>
					   <ul ng-if="pagedata.item.express.expresssn && pagedata.item.status>=2 && pagedata.item.addressid">
							<li class="text">{{check_show_lang('快递公司')}}: <span class="text-default">{{pagedata.item.express.express_id || '其他快递'}}</span></li>
							<li class="text">{{check_show_lang('快递单号')}}: <span class="text-default">{{pagedata.item.express.expresssn}}</span> &nbsp;&nbsp;<a class='op text-success' data-toggle="ajaxModal" href="javascript:;" ng-click="modal_json({'action':'jy_weishop/order.express//id='+pagedata.item.id})">查看物流</a></li>
							<li class="text">{{check_show_lang('发货时间')}}: <span class="text-default">{{date(pagedata.item.express.createtime)}}</span></li>
						</ul>
						<li class="text" ng-if="pagedata.item.addressid && (pagedata.item.sendtype==1 || pagedata.item.sendtype==4)">
                                <span class="col-sm">{{check_show_lang('收货信息_The consignee')}}：</span> 
                                <span class="text-default" style='word-break: break-all;white-space: normal'>
                                    {{check_show_lang(pagedata.item.address.address)}}, 
									<red ng-if="pagedata.item.address.area_code">{{check_show_lang('邮编_Zip code')}}：</red>{{check_show_lang(pagedata.item.address.area_code)}} 
									<a href="#" class='js-clip text-success' ng-click="clip(pagedata.item.address.address+', '+pagedata.item.address.name+', '+pagedata.item.address.mobile)">{{check_show_lang('[复制]_[Copy]')}}</a></br>
                                    <red>{{check_show_lang('联系人_Name')}}</red>：{{pagedata.item.address.name}}</br><red>{{check_show_lang('联系电话_Tel')}}</red>：{{pagedata.item.address.mobile}} </br>
								</span>
								<div ng-if="pagedata.item.address.diyfields.length>0">
								<span class="col-sm">{{check_show_lang('其他信息_The consignee')}}：</span> 
								<span class="text-default" style='word-break: break-all;white-space: normal'>
								<span ng-repeat="av in pagedata.item.address.diyfields">
									<span>{{av.title}}</span>：
									<span ng-if="av.type!=3">{{av.data}}</span>
									<span >{{av.title}}</span>：
									<span ng-if="av.type==3">
									 <img style="width:100px;height:100px" ng-src="{{tomedia(av.data)}}"/>
									</span>
								</span>
								</span>
								</div>
                         </li>
								<div ng-if="pagedata.item.peisong_id>0" href="tel:{{pagedata.peisong.mobile}}" class="subtitle"><i class="icon icon-peisong" style="font-size:0.65rem;color:green"></i> 配送员: {{pagedata.peisong.title || '无'}}（<i class="icon icon-phone" style="font-size:0.65rem;color:green"></i>{{pagedata.peisong.mobile || '无'}}）</div>
								<div ng-if="!pagedata.item.peisong_id && pagedata.peisong.opensend_type>=1" href="tel:{{pagedata.peisong.peisong_mobile}}" class="subtitle"><i class="icon icon-peisong" style="font-size:0.65rem;color:green"></i> 【{{pagedata.peisong.opensend_type==1?'达达配送':'货拉拉'}}】 配送员: {{pagedata.peisong.peisong_name || '无'}}（<i class="icon icon-phone" style="font-size:0.65rem;color:green"></i>{{pagedata.peisong.peisong_mobile || '无'}}）</div>
								<div ng-if="pagedata.self.out_time" class="has-address green">约{{pagedata.self.out_time}}送达</div>
								<li class="text" ng-if="pagedata.item.sendtype==2">
									<span class="col-sm">{{check_show_lang('联系人_The consignee')}}：</span> 
									<span class="text-default" style='word-break: break-all;white-space: normal'>
										<red>{{check_show_lang('姓名_Name')}}</red>：{{pagedata.item.realname||pagedata.item.address.name}} <red>{{check_show_lang('联系电话_Tel')}}</red>：{{pagedata.item.mobile||pagedata.item.address.mobile}} </br>
									</span>
								</li>
                                <li class="text" ng-if="!pagedata.item.addressid && (pagedata.item.isverify==1 || pagedata.item.virtual || pagedata.item.isvirtual)">
                                    <span class="col-sm">{{check_show_lang('核销联系人')}}：</span>
                                    <span class="text-default" style='word-break: break-all;white-space: normal'>{{pagedata.item.carrier_realname || '无'}}, {{pagedata.item.carrier_mobile || '无'}}</span>
                                </li>
                                <li class="text" ng-if="pagedata.item.isverify!=1 && !pagedata.item.virtual && !pagedata.item.isvirtual">
                                    <span class="col-sm">{{check_show_lang('自提码')}}：</span>
                                    <span class="text-default">{{pagedata.item.verifycode}}</span>
                                </li>
                                <li class="text" ng-if="pagedata.item.isverify!=1 && !pagedata.item.virtual && !pagedata.item.isvirtual">
                                    <span class="col-sm">{{check_show_lang('自提人')}}：</span>
                                    <span class="text-default" style='word-break: break-all;white-space: normal'>{{pagedata.item.carrier_realname}} {{pagedata.item.carrier_mobile}} </span>
                                </li>
                                <li class="text" ng-if="pagedata.item.isverify!=1 && !pagedata.item.virtual && !pagedata.item.isvirtual">
                                    <span class="col-sm">{{check_show_lang('自提点')}}：</span>
                                    <span class="text-default" style='word-break: break-all;white-space: normal'>{{pagedata.item.address.address}},  {{pagedata.item.name}}, {{pagedata.item.mobile}}</span>
                                </li>
								<li class="text" ng-if="pagedata.item.merchid>0">
                                    <span class="col-sm">商户：</span>
                                    <span class="text-default" style='word-break: break-all;white-space: normal'>
									{{pagedata.item.merch.merchname}},  {{pagedata.item.merch.realname}}, {{pagedata.item.merch.mobile}}
									</span>
                                </li>
								<li class="text" ng-if="pagedata.item.merchid>0">
                                    <span class="col-sm">商户地址：</span>
                                    <span class="text-default" style='word-break: break-all;white-space: normal'>
									{{pagedata.item.merch.address}}
									</span>
                                </li>
					   </td>
					   <td>
							<a ng-if="pagedata.item.status==2" class="btn btn-primary btn-xs" data-toggle="ajaxPost" href="javascript:;" ng-click="post({'id':pagedata.item.id},'receive','','','确认订单收货吗？')" data-confirm="">确认收货</a>
							<a ng-if="pagedata.item.status==0" class='text-primary'  data-toggle='ajaxModal' href="javascript:;" ng-click="modal_json({'action':'/store.order.detail/upprice/id='+pagedata.item.id})">订单改价</a>
							<a ng-if="pagedata.item.status==2" class="text-primary" data-toggle="ajaxModal"   href="javascript:;" ng-click="post({'id':pagedata.item.id},'cancelfh','','','确认取消订单发货吗？')">取消发货</a>
							<a class="text-primary" data-toggle="ajaxModal"  href="javascript:;" ng-click="modal_json({'action':'/store.order.detail/remark/id='+pagedata.item.id})">{{check_show_lang('添加备注_Add remark')}}</a>
							<a ng-if="pagedata.item.status==1 && (pagedata.item.send_status==0 || pagedata.item.send_status==11)" class="btn btn-primary" data-toggle="ajaxModal"  href="javascript:;" ng-click="modal_json({'action':'jy_weishop/order.list/fa/id='+pagedata.item.id})">发货</a>
							 <a ng-if="pagedata.item.status==1 && (pagedata.item.sendtype==1 || pagedata.item.sendtype==4)" class="btn btn-primary" style="margin-left: 10px" href="javascript:;" ng-click="modal_json('jy_weishop/order.detail/upaddress/id='+pagedata.item.id)">修改订单收货信息</a>
					   </td>
					</tr>
				 </tbody>
</table>